﻿@{
    ViewBag.Title = "合作网站登录";
    Layout = "../Shared/_Layout.cshtml";
}

<div id="main_body">


    <div class="main-box">

        <div id="oauthTabs" class="inner-box">
            <!--选项卡-->
            <div id="tabHead" class="tab-head">
                <ul>
                    <li>
                        <a class="selected" href="javascript:;">绑定已有的账号</a>
                    </li>
                    <li>
                        <a href="javascript:;">创建新的账号</a>
                    </li>
                </ul>
            </div>
            <!--/选项卡-->

            <!--选项内容-->
             @using (Ajax.BeginForm("user_oauth_bind",new AjaxOptions() {OnSuccess = "OnSuccess"}))
             {
              
                     <div class="dl-list tab-content" style="display: block;">
                         <dl>
                             <dt>用户名：</dt>
                             <dd>
                                 <input name="txtUserName" type="text" class="input normal" datatype="*" nullmsg="请输入用户名" sucmsg=" " /></dd>
                         </dl>
                         <dl>
                             <dt>密　码：</dt>
                             <dd>
                                 <input name="txtPassword" type="password" class="input normal" datatype="*6-20" nullmsg="请输入密码" sucmsg=" " /></dd>
                         </dl>
                         <dl>
                             <dt></dt>
                             <dd>
                                 <input id="btnSubmit1" name="btnSubmit1" type="submit" class="btn" value="立即绑定" /></dd>
                         </dl>
                     </div>
              
             }
             @using (Ajax.BeginForm("user_oauth_register",new AjaxOptions() {OnSuccess = "OnSuccess"}))
             {
                 
                     <div class="dl-list tab-content">
                         <dl>
                             <dt>电子邮箱：</dt>
                             <dd>
                                 <input name="txtEmail" type="text" class="input txt" datatype="e" nullmsg="请输入邮箱地址" sucmsg=" " /></dd>
                         </dl>
                         <dl>
                             <dt>手机号码：</dt>
                             <dd>
                                 <input name="txtMobile" type="text" class="input txt" datatype="m" nullmsg="请输入手机号码" sucmsg=" " /></dd>
                         </dl>
                         <dl>
                             <dt>登录密码：</dt>
                             <dd>
                                 <input name="txtPassword" type="password" class="input txt" datatype="*6-20" nullmsg="请设置密码" sucmsg=" " /></dd>
                         </dl>
                         <dl>
                             <dt></dt>
                             <dd>
                                 <input id="btnSubmit2" name="btnSubmit1" type="submit" class="btn" value="创建新账户" /></dd>
                         </dl>
                     </div>
                
             }
            <!--/选项内容-->
           
        </div>


    </div>


</div>

<div class="line10"></div>
<script>
    function OnSuccess(e) {
        if (e.status == "-1") {
            $.dialog.alert(e.message);
        } else {
            window.location.href = e.message;
        }
    }

    $(function () {
        tabs('#oauthTabs', 'click');
    });
</script>


